#ifndef _PWM_H
#define _PWM_H

#include "stm32f4xx.h"

#define  PWM_TIM_CLK		 		RCC_APB1Periph_TIM3
#define  PWM_GPIO_CLK        		RCC_AHB1Periph_GPIOB
#define  PWM_GPIO_PORT      	    GPIOB
#define  PWM_GPIO_PIN        		GPIO_Pin_0
#define  PWM_GPIO_PIN_SOURCE        GPIO_PinSource0
#define  PWM_GPIO_AF        		GPIO_AF_TIM3
#define  PWM_TIM        			TIM3

#define  PWM_IN3_GPIO_CLK        	RCC_AHB1Periph_GPIOB
#define  PWM_IN3_GPIO_PORT      	GPIOB
#define  PWM_IN3_GPIO_PIN        	GPIO_Pin_1

#define  PWM_IN1_GPIO_CLK        	RCC_AHB1Periph_GPIOE
#define  PWM_IN1_GPIO_PORT      	GPIOE
#define  PWM_IN1_GPIO_PIN        	GPIO_Pin_7

#define  FAN_OUT_1 PBout(1)=1

#define  FAN_OUT_0 PBout(1)=0

#define  UV_OUT_1 PEout(7)=1

#define  UV_OUT_0 PEout(7)=0

extern void PWM_init(void);


#endif
